home *** CD-ROM | disk | FTP | other *** search
Text File | 2003-07-17 | 43.7 KB | 1,445 lines |
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: 1 April 1996
- //
- // Author: jb
- //
- // Description:
- // This implements the "Display" menu on the main menubar.
- //
- {
-
- }
-
- // helper procs. these are approxomately in the same order the items are in the Display menu
-
- global proc gridMenuUpdate() {
- //
- // This is called when a "gridDisplayChanged" event is detected.
- // Update the menu item, the option var and the gShowGrid variable.
- //
- if( `menuItem -exists dispGridItem` ) {
- menuItem -e -cb `grid -q -tgl` dispGridItem;
- }
- }
-
- global proc originAxesMenuUpdate() {
- //
- // This is called when a "originAxesDisplayChanged" event is detected.
- // Update the menu item, the option var and the gToggleOriginAxis variable.
- //
- if( `menuItem -exists originAxesItem` ) {
- menuItem -e -cb `toggleAxis -q -o` originAxesItem;
- }
- }
-
- global proc showLastHidden ()
- {
- global string $gLastHiddenSelection[];
- if (size($gLastHiddenSelection) != 0) {
- string $cmd="showHidden -a";
- for ($i in $gLastHiddenSelection) {
- // must be silent if the objects don't exist anymore...
- if (`objExists $i`)
- $cmd=($cmd + " " + $i);
- }
- evalEcho $cmd;
- clear $gLastHiddenSelection;
- } else warning "No previously hidden objects to show again.";
- }
-
- global proc hideShowDeformingGeom( string $state )
- //
- // Hides or shows deforming geometry in the system.
- // Takes a state, either hide or show, in order to
- // perform the appropriate action.
- {
- // Get a list of all deformers in the system, then
- // hide their associated set
- //
- string $deformers[] = `ls -type cluster -type jointCluster
- -type jointLattice -type boneLattice -type ffd -type jointFfd
- -type wire -type sculpt -type blendShape
- -type geometryFilter -type weightGeometryFilter`;
- string $sortedDeformers[] = `sort $deformers`;
- string $lastDeformer = "";
- string $deformerSets[];
- string $result[];
- for( $deformer in $sortedDeformers ) {
- if ( $deformer != $lastDeformer )
- {
- $lastDeformer = $deformer;
- $deformerSets = `listConnections ( $deformer + ".message" )`;
- for( $set in $deformerSets ) {
- if ("objectSet" == nodeType($set))
- $result[size($result)]=$set;
- }
- }
- }
-
- // $result holds a list of sets. We want the members of the sets
- // so that we can get the parents
- int $count = 0;
- string $geometry[];
- string $members[];
- for( $set in $result ) {
- $members = `sets -q $set`;
- for( $member in $members ) {
- $geometry[ $count ] = $member;
- $count++;
- }
- }
-
- // get the parents (which may be shapes) of the geometry/components
- string $parents[] = `listRelatives -p $geometry`;
-
- // Get the parent transforms of the shapes
- string $shapes[] = `ls -type shape $parents`;
- string $parentTransforms[] = `listRelatives -p $shapes`;
-
- // extract the transforms and add then to the list of shapeTransforms
- string $transforms[] = `ls -type transform $parents`;
- if ( size($transforms) != 0 ) {
- int $count = size($parentTransforms);
- for( $xform in $transforms ) {
- $parentTransforms[ $count ] = $xform;
- $count++;
- }
- }
-
- if( $state == "hide" ) {
- if ( size($parentTransforms) != 0 ) {
- hideKeepSelection $parentTransforms;
- }
- else warning "No deforming geometry to hide.";
- }
- else {
- if ( size($parentTransforms) != 0 ) {
- string $cmd="showHidden";
- for ($i in $parentTransforms) {
- if (`objExists $i`)
- $cmd=($cmd + " " + $i);
- }
- evalEcho $cmd;
- }
- else warning "No deforming geometry to show.";
- }
- }
-
- proc string[] listWireCurves()
- //
- // Returns a list of all the curves attached to wire nodes
- // in the scene
- {
- string $wires[];
- $wires = `ls -type wire`;
-
- string $connections[];
- string $ws[];
- int $wcount = 0;
- for ( $wire in $wires )
- {
- $connections = `listConnections ($wire + ".deformedWire")`;
- int $numConn = size($connections);
- for ($ii=0; $ii<$numConn; $ii++)
- $ws[$wcount++] = $connections[$ii];
- }
- return $ws;
- }
-
-
- proc string[] listWrapInfluences()
- //
- // Returns a list of all the influence objects
- // attached to the wrap nodes in the scene
- {
- string $wraps[];
- $wraps = `ls -type wrap`;
-
- string $connections[];
- string $infls[];
- int $inflCount = 0;
- for( $wrap in $wraps )
- {
- $connections = `listConnections ($wrap + ".driverPoints")`;
- int $numConn = size($connections);
- for($i=0;$i<$numConn;$i+=2)
- $infls[$inflCount++] = $connections[$i];
- }
- return $infls;
- }
-
- proc string[] listSkinClusterInfluences()
- //
- // Returns a list of all the influence objects
- // attached to the skinCluster nodes in the scene
- {
- string $skinClusters[];
- $skinClusters = `ls -type skinCluster`;
-
- string $connections[];
- string $infls[];
- int $inflCount = 0;
- for( $skinCluster in $skinClusters )
- {
- $connections = `listConnections ($skinCluster + ".matrix")`;
- int $numConn = size($connections);
- for($i=0;$i<$numConn;$i++)
- {
- $transformType = `nodeType $connections[$i]`;
- if ($transformType != "joint")
- $infls[$inflCount++] = $connections[$i];
- }
- }
- return $infls;
- }
-
- proc appendToList( string $list1[], string $list2[])
- //
- // Appends the elements of list2 to the end of list1
- {
- $count = size($list1);
- for( $elem in $list2 )
- {
- $list1[$count++] = $elem;
- }
- }
-
-
- global proc hideShow( string $type, string $state )
- //
- // Hides/shows objects in the scene. Takes an object
- // type and the state to set as arguments.
- {
- string $list[];
-
- switch( $type ) {
- case "-cameras":
- $list = `listTransforms "-ap -cameras"`;
- break;
- case "-geometry":
- //
- // High level setting to turn off all
- // geometry types
- //
- if (`isTrue "SubdivUIExists"`)
- $list = `listTransforms
- "-type nurbsSurface -type nurbsCurve -type mesh -type subdiv"`;
- else
- $list = `listTransforms
- "-type nurbsSurface -type nurbsCurve -type mesh"`;
- break;
- case "-nurbsSurfaces":
- $list = `listTransforms "-type nurbsSurface"`;
- break;
- case "-nurbsCurves":
- $list = `listTransforms "-type nurbsCurve"`;
- break;
- case "-polySurfaces":
- $list = `listTransforms "-type mesh"`;
- break;
- case "-subdiv":
- $list = `listTransforms "-type subdiv"`;
- break;
- case "-planes":
- $list = `listTransforms "-type sketchPlane"`;
- break;
- case "-lights":
- $list = `listTransforms "-type light"`;
- break;
- case "-strokes":
- $list = `listTransforms "-type stroke"`;
- break;
- case "-strokeCurves":
- $list = listAllStrokeCurves(false);
- break;
- case "-strokeControlCurves":
- $list = listAllStrokeCurves(true);
- break;
- case "-place3dTexture":
- $list = `ls -type "place3dTexture"`;
- break;
- case "-kinematics":
- //
- // High level setting to turn off
- // all kinematics types
- //
- $list =
- `ls -type joint
- -type ikHandle`;
- break;
- case "-joints":
- $list = `ls -type joint`;
- break;
- case "-ikHandles":
- $list = `ls -type ikHandle`;
- break;
- case "-ikEff":
- $list = `ls -type ikEffector`;
- break;
- case "-deformers":
- //
- // High level setting to turn
- // off all deformer types
- //
- $list = `listTransforms
- "-type lattice -type implicitSphere -type clusterHandle -type deformBend -type deformFlare -type deformSine -type deformSquash -type deformTwist -type deformWave"`;
- $wraps = listWrapInfluences();
- $wires = listWireCurves();
- $skinClusters = listSkinClusterInfluences();
- appendToList($list, $wraps);
- appendToList($list, $wires);
- appendToList($list, $skinClusters);
-
- break;
- case "-lattices":
- $list = `listTransforms "-type lattice"`;
- break;
- case "-sculptObjects":
- $list = `listTransforms "-type implicitSphere"`;
- break;
- case "-clusters":
- $list = `listTransforms "-type clusterHandle"`;
- break;
- case "-nonlinears":
- $list = `listTransforms "-type deformBend -type deformFlare -type deformSine -type deformSquash -type deformTwist -type deformWave"`;
- break;
- case "-wraps":
- $list = listWrapInfluences();
- break;
- case "-skinClusters":
- $list = listSkinClusterInfluences();
- break;
- case "-posMarker":
- $list = `listTransforms "-type positionMarker"`;
- break;
- case "-fluids":
- $list = `listTransforms "-type fluidShape"`;
- break;
- default:
- warning( "Node type not known" );
- break;
- }
-
- // Do the actual hide/show, based on the
- // list that was built in the above case
- // statement
- //
- if( $state == "-hide" ) {
- if (size($list) > 0) {
- hideKeepSelection $list;
- }
- else warning ("No objects to hide.");
- }
- else {
- if (size($list) > 0) {
- string $cmd="showHidden -a";
- for ($i in $list) {
- if (`objExists $i`)
- $cmd=($cmd + " " + $i);
- }
- evalEcho $cmd;
- }
- else warning ("No objects to show.");
- }
- }
-
- global proc adjustSmoothness ( string $selection ){
-
- switch ( $selection ){
- case "Rough":
- displaySmoothness -du 0 -dv 0 -pw 4 -ps 1;
- displaySmoothness -su 6 -sv 6 -pw 4 -ps 1;
- break;
- case "Medium":
- displaySmoothness -du 1 -dv 1 -pw 8 -ps 2;
- displaySmoothness -su 3 -sv 3 -pw 8 -ps 2;
- break;
- case "Fine":
- displaySmoothness -du 2 -dv 2 -pw 16 -ps 4;
- displaySmoothness -su 1 -sv 1 -pw 16 -ps 4;
- break;
- default:
- displaySmoothness -du 1 -dv 1 -pw 8 -ps 2;
- displaySmoothness -su 3 -sv 3 -pw 8 -ps 2;
- break;
- }
- }
-
- global proc setNormalsSize ( float $val )
- {
- polyOptions -ao -dn true -sn $val;
- }
-
- global proc doFastInteractionItem(int $isFast)
- {
- global int $gFastInteraction;
-
- displayLevelOfDetail -lod $isFast;
- $gFastInteraction = $isFast;
-
- if( `menuItem -exists dispLODItem` ) {
- menuItem -e -cb $isFast dispLODItem;
- }
- }
-
- global proc toggleSurfaceBackfaceCulling()
- //
- // Toggle the backface culling on all selected surfaces
- //
- {
- global int $gSelectMeshesBit ;
- global int $gSelectNurbsSurfacesBit;
-
- // Toggle backface culling for all nurbs surfaces
- //
- string $nurbsSurfaces[] = `filterExpand -ex true -sm $gSelectNurbsSurfacesBit`;
- for ( $surface in $nurbsSurfaces ) {
- displayCull -bfc (!`displayCull -q -bfc $surface`) $surface;
- }
-
- // Toggle backface culling for all mesh surfaces
- //
- string $meshSurfaces[] = `filterExpand -ex true -sm $gSelectMeshesBit`;
- int $isNotCulled[] = `polyOptions -q -bc $meshSurfaces`;
- int $index = 0;
- for ( $surface in $meshSurfaces ) {
- if ( $isNotCulled[$index] ) {
- polyOptions -fb $surface;
- } else {
- polyOptions -bc $surface;
- }
- $index++;
- }
- }
-
- global proc boundingBoxDisplayCtrl ( int $enabled, string $startNode )
- //
- // For all the shapes under the selected objects, either turn
- // bounding box display on or off based on the value of enabled.
- // 0=turn off display, non-zero=turn on display.
- //
- {
- string $selectedObjects[];
- string $object;
-
- if ( $startNode == "" ) {
- $selectedObjects = `ls -sl`;
- } else {
- $selectedObjects[0] = $startNode;
- }
-
- for ( $object in $selectedObjects ) {
-
- string $shapes[] = `listRelatives -shapes $object`;
- string $shape;
-
- if ( size( $shapes ) == 0 ) {
- string $transform;
- $shapes = `listRelatives -children $object`;
-
- for ( $transform in $shapes ) {
- if ( `nodeType $transform` == "transform" ) {
- // We encountered a group node. Recur down until
- // we find the shape nodes in this group.
- boundingBoxDisplayCtrl $enabled $transform;
- }
- }
- }
-
- for ( $shape in $shapes ) {
- if ( $enabled ) {
- setAttr ( $shape + ".overrideEnabled") 1;
- setAttr ( $shape + ".overrideLevelOfDetail") 1;
- } else {
- // Don't reset the overrideEnabled attribute. It
- // is used for more than just bounding box display
- // and turning if off will mess things up of you
- // have temporarily enabled bounding box display
- // of an object in a layer.
- setAttr ( $shape + ".overrideLevelOfDetail" ) 0;
- }
-
- }
- }
- }
-
- global proc buildDisplayMenu ( string $parent ) {
- //
- // Build the Display menu. Checks to see if it's already
- // been built, and returns if this is true.
- //
-
- setParent -m $parent;
-
- //HeadsUpDisplay Menu Item
- global string $gHeadsUpDisplayMenu;
-
- global int $gToggleOriginAxis;
-
- global int $gShowGrid;
- global float $gJointDisplayScale;
-
- setParent -m $parent;
- if( `menu -q -ni $parent` == 0 ) {
-
- // first Items that affect a whole panel's state
-
- menuItem -cb $gShowGrid
- -l "Grid"
- -annotation "Grid: Toggle the Grid visibility"
- -c "ToggleGrid"
- dispGridItem;
-
- menuItem -ecr false -optionBox 1
- -annotation "Grid Option Box"
- -l "Grid Option Box"
- -c "GridOptions" dispGridSpacingItem;
-
- //Note: HeadsUpDisplay Toggle methods (except origin axis) are located in initHUDScripts.mel
- //
- if (!`exists initHUDScripts`)
- {
- source initHUDScripts.mel;
- }
-
- $gHeadsUpDisplayMenu = `menuItem -l "Heads Up Display"
- -sm true
- -tearOff true`;
-
- menuItem -checkBox `optionVar -query objectDetailsVisibility`
- -label "Object Details"
- -command "ToggleObjectDetails"
- -annotation "Object Details: Toggle the display of object details"
- objectDetailsItem;
-
- menuItem -checkBox `optionVar -query polyCountVisibility`
- -l "Poly Count"
- -command "TogglePolyCount"
- -annotation "Poly Count: Toggle the display of the component count for visible polygons"
- polyCountItem;
-
- menuItem -checkBox `optionVar -query animationDetailsVisibility`
- -label "Animation Details"
- -command "ToggleAnimationDetails"
- -annotation "Animation Details: Toggle the display of animation details"
- animationDetailsItem;
-
- menuItem -checkBox `optionVar -query frameRateVisibility`
- -label "Frame Rate"
- -command "ToggleFrameRate"
- -annotation "Frame Rate: Toggle the display of the frame rate"
- frameRateItem;
-
- menuItem -checkBox `optionVar -query cameraNamesVisibility`
- -label "Camera Names"
- -command "ToggleCameraNames"
- -annotation "Camera Names: Toggle the display of the camera names"
- cameraNamesItem;
-
- menuItem -checkBox `optionVar -query viewAxisVisibility`
- -label "View Axis"
- -command "ToggleViewAxis"
- -annotation "View Axis: Toggle the visibility of the view axis"
- viewAxisItem;
-
- menuItem -checkBox $gToggleOriginAxis
- -label "Origin Axis"
- -annotation "Origin Axis: Toggle the visibility of the origin axis"
- -command "ToggleOriginAxis"
- originAxesItem;
-
- // NOTE:
- // Do not just add new things to the bottom of this menu.
- // Look at the loose groupings above and add new things
- // where they fit best. (modeling, animation, view...)
-
- setParent -menu ..;
-
- global string $gMainOptionsMenu;
- menuItem -l "UI Elements"
- -subMenu true -tearOff true
- -familyImage "menuIconOptions.xpm"
- -pmc ( "buildPreferenceMenu " + $gMainOptionsMenu )
- $gMainOptionsMenu;
- setParent -m $parent;
-
- menuItem -divider true;
-
- // items that work on object's display in all panels
-
- $menuItem = `menuItem -l "Hide" -subMenu 1 -tearOff 1`;
- global string $gDisplayHideSubmenu;
- $gDisplayHideSubmenu = $menuItem;
- menuItem -e -pmc ( "buildHideSubmenu " + $menuItem ) $menuItem;
- setParent -m ..;
-
- $menuItem = `menuItem -l "Show" -subMenu 1 -tearOff 1`;
- global string $gDisplayShowSubmenu;
- $gDisplayShowSubmenu = $menuItem;
- menuItem -e -pmc ( "buildShowSubmenu " + $menuItem ) $menuItem;
- setParent -m ..;
-
- menuItem -d true;
-
- menuItem -l "Wireframe Color..."
- -annotation "Wireframe Color: Set the wireframe color of all selected objects"
- -c "objectColorPalette ()"
- objectColorItem;
-
- menuItem -l "Object Display" -subMenu true -tearOff true;
-
- menuItem -l "Template"
- -annotation "Template: Make objects templated"
- -c "TemplateObject" templateOnItem;
-
- menuItem -l "Untemplate"
- -annotation "Untemplate: Make objects untemplated"
- -c "UntemplateObject" templateOffItem;
-
- menuItem -d true;
-
- menuItem -l "Bounding Box"
- -annotation "Bounding Box: Display objects as a box"
- -c "ShowBoundingBox" enableBoundingBoxDisplayItem;
-
- menuItem -l "No Bounding Box"
- -annotation "No Bounding Box: Full display of objects"
- -c "HideBoundingBox" disableBoundingBoxDisplayItem;
-
- menuItem -d true;
-
- menuItem -l "Geometry"
- -annotation "Geometry: Display object geometry"
- -c "ShowObjectGeometry";
-
- menuItem -l "No Geometry"
- -annotation "No Geometry: Do not display object geometry"
- -c "HideObjectGeometry";
-
- setParent -m ..;
-
- menuItem -l "Component Display" -subMenu true -tearOff true objectsCompItem;
- menuItem -l "Backfaces"
- -annotation "Backfaces: Toggle Geometry Backface visibility"
- -c "ToggleBackfaceGeometry" toggleBackfaceCullingItem;
- menuItem -l "Lattice Points"
- -annotation "Lattice Points: Toggle Lattice Point visibility"
- -c "ToggleLatticePoints" toggleLatticePtItem;
- menuItem -l "Lattice Shape"
- -annotation "Lattice Shape: Toggle Lattice Shape visibility"
- -c "ToggleLatticeShape" toggleLatticeShapeItem;
- menuItem -d true;
- menuItem -l "Local Rotation Axes"
- -annotation "Local Rotation Axes: Toggle local rotation axis visibility"
- -c "ToggleLocalRotationAxes" toggleAxisItem;
- menuItem -l "Rotate Pivots"
- -annotation "Rotate Pivots: Toggle Rotation Pivot visibility"
- -c "ToggleRotationPivots" toggleRPItem;
- menuItem -l "Scale Pivots"
- -annotation "Scale Pivots: Toggle Scale Pivot visibility"
- -c "ToggleScalePivots" toggleSPItem;
- menuItem -l "Selection Handles"
- -annotation "Selection Handles: Toggle Selection Handle visibility"
- -c "ToggleSelectionHandles" toggleSHItem;
- setParent -m ..;
-
- menuItem -d true;
-
- // NURBS display items
-
- menuItem -l "NURBS Components" -subMenu true -aob true -tearOff true curvCompItem;
- menuItem -l "CVs"
- -annotation "CVs: Toggle CV visibility"
- -c "ToggleCVs" toggleCVItem;
- menuItem -l "Edit Points"
- -annotation "Edit Points: Toggle Edit Point visibility"
- -c "ToggleEditPoints" toggleEPItem;
- menuItem -l "Hulls"
- -annotation "Hulls: Toggle Hull visibility"
- -c "ToggleHulls" toggleHullItem;
- if( `isTrue SurfaceUIExists` ) {
- menuItem -l "Normals (Shaded Mode)"
- -imageOverlayLabel "Nrm"
- -annotation "Normals: Toggle visible normals in shaded mode"
- -c "ToggleNormals" toggleNormalItem;
- }
- menuItem -l "Patch Centers"
- -annotation "Patch Centers: Toggle face center visibility"
- -c "ToggleSurfaceFaceCenters" toggleSurfaceFaceItem;
- menuItem -l "Surface Origins"
- -annotation "Surface Origins: Toggle origin visibility"
- -c "ToggleSurfaceOrigin" toggleOriginItem;
- menuItem -l "Custom"
- -annotation ("Custom: Set the visibility options of " +
- "NURBS components for selected object(s)")
- -dmc "performDisplayControl 2"
- -c "ToggleCustomNURBSComponents" dispSmthnessCustomItem;
- menuItem -ecr false -optionBox true
- -annotation "Custom NURBS Component Display Option Box"
- -l "Custom Option Box"
- -c "CustomNURBSComponentsOptions" dispSmthnessCustomOBItem;
- setParent -m ..;
- $menuItem = `menuItem -l "NURBS Smoothness" -sm true -to true -aob true`;
- menuItem -e -pmc ( "buildSmoothnessSubmenu " + $menuItem ) $menuItem;
- setParent -m ..;
-
- menuItem -divider true;
-
- if (`isTrue "PolygonsExists"`) {
- // Polygons display items
- menuItem -l "Polygon Components" -subMenu true -tearOff true polyComponentsItem;
- menuItem -l "Vertices"
- -annotation "Vertices: Toggle the Poly Vertex visibility"
- -c "ToggleVertices" togglePolyvItem;
- menuItem -l "Border Edges"
- -annotation "Border Edges: Toggle the Poly Border visibility"
- -c "ToggleBorderEdges" togglePolyBEItem;
- menuItem -l "Soft/All Edges"
- -annotation "Soft Edges: Toggle the Soft Edge visibility"
- -c "ToggleSoftEdges"
- togglePolyBE2Item;
- menuItem -l "Face Centers"
- -annotation "Face Centers: Toggle the Face Center visibility"
- -c "TogglePolygonFaceCenters";
- menuItem -l "UVs"
- -annotation "UVs: Toggle the UV visibility"
- -c "ToggleUVs" ;
-
- menuItem -d true;
-
- menuItem -l "Normals"
- -annotation "Normals: Toggle the Face Normal visibility"
- -c "ToggleFaceNormals" toggleNormal1Item;
- menuItem -l "Long Normals"
- -annotation "Long Normals: Set the Poly Normal size to Long"
- -c "LongPolygonNormals" toggleNormal2Item;
- menuItem -l "Medium Normals"
- -annotation "Medium Normals: Set the Poly Normal size to Medium"
- -c "MediumPolygonNormals" toggleNormal3Item;
- menuItem -l "Short Normals"
- -annotation "Short Normals: Set the Poly Normal size to Short"
- -c "ShortPolygonNormals" toggleNormal4Item;
-
- setParent -m ..;
-
- menuItem -l "Custom Polygon Display"
- -annotation "Custom Polygon Display: Customize the Polygon Display Options"
- -dmc "polysDisplaySetup 2"
- -c "CustomPolygonDisplay" dispPolyCustomItem;
- menuItem -ecr false -optionBox true
- -annotation "Custom Polygon Display Option Box"
- -l "Custom Polygon Display Option Box"
- -c "CustomPolygonDisplayOptions" dispPolyCustomOBItem;
- menuItem -divider true;
- }
-
- if (`isTrue "SubdivUIExists"`) {
- // Subdiv Surf display items
- menuItem -l "Subdiv Surface Components" -subMenu true -tearOff true ;
- menuItem -l "Vertices"
- -annotation "Vertices: Toggle visibility of vertices"
- -c "ToggleMeshPoints" subdivToggleMeshPointItem;
- menuItem -l "Edges"
- -annotation "Edges: Toggle visibility of edges"
- -c "ToggleMeshEdges" subdivToggleMeshEdgeItem;
- menuItem -l "Faces"
- -annotation "Faces: Toggle visibility of faces"
- -c "ToggleMeshFaces" subdivToggleMeshFaceItem;
- menuItem -l "UVs"
- -annotation "Maps: Toggle visibility of UV map components"
- -c "ToggleMeshMaps" subdivToggleMeshMapItem;
-
- menuItem -l "Normals (Shaded Mode)"
- -imageOverlayLabel "Nrm"
- -annotation "Normals: Toggle visible normals in shaded mode"
- -c "ToggleNormals" toggleNormalSubdivItem;
-
- menuItem -l "UV Borders (Texture Editor)"
- -annotation "UV Borders: Toggle visibility of UV texture borders"
- -c "ToggleMeshUVBorders" subdivToggleMeshCreasesItem;
-
- setParent -m ..;
-
- menuItem -l "Subdiv Surface Smoothness" -subMenu true -tearOff true -aob true ;
- menuItem -l "Hull"
- -annotation "Display Hull: Set the Display Smoothness to Hull"
- -dmc "performSubdivDisplaySmoothnessHull 2"
- -c "SubdivSmoothnessHull"
- dispSmthnessHullItem;
- menuItem -ecr false -optionBox true
- -annotation "Display Subdiv Hull Option Box"
- -l "Subdiv Hull Option Box"
- -c "SubdivSmoothnessHullOptions"
- subdivSetHullOptionItem;
- menuItem -l "Rough"
- -annotation "Rough: Set the Display Smoothness to Rough"
- -dmc "performSubdivDisplaySmoothnessRough 2"
- -c "SubdivSmoothnessRough"
- subdivSetRoughItem;
- menuItem -ecr false -optionBox true
- -annotation "Display Subdiv Rough Option Box"
- -l "Subdiv Rough Option Box"
- -c "SubdivSmoothnessRoughOptions"
- subdivSetRoughOptionItem;
-
- menuItem -l "Medium"
- -annotation "Medium: Set the Display Smoothness to Medium"
- -dmc "performSubdivDisplaySmoothnessMedium 2"
- -c "SubdivSmoothnessMedium"
- subdivSetMediumItem;
- menuItem -ecr false -optionBox true
- -annotation "Display Subdiv Medium Option Box"
- -l "Subdiv Medium Option Box"
- -c "SubdivSmoothnessMediumOptions"
- subdivSetMediumOptionItem;
-
- menuItem -l "Fine"
- -annotation "Fine: Set the Display Smoothness to Fine"
- -dmc "performSubdivDisplaySmoothnessFine 2"
- -c "SubdivSmoothnessFine"
- subdivSetFineItem;
- menuItem -ecr false -optionBox true
- -annotation "Display Subdiv Fine Option Box"
- -l "Subdiv Fine Option Box"
- -c "SubdivSmoothnessFineOptions"
- subdivSetFineOptionItem;
-
- setParent -m ..;
- menuItem -d true;
- }
-
- // misc. item
- menuItem -cb `optionVar -q "fastInteraction"` -l "Fast Interaction"
- -annotation "Fast Interaction: Toggle Fast Interaction Mode"
- -c "doFastInteractionItem (!`displayLevelOfDetail -q -lod`)" dispLODItem;
-
- // This menu cannot be tear-off-able since it is dynamically built
- string $menu = `menuItem -l "Camera/Light Manipulator" -sm true`;
- menuItem -e -pmc ("buildRenderManipMenu "+ $menu) $menu;
- setParent -m ..;
-
-
- if (`exists jointDisplayScale`)
- {
- $menuItem = `menuItem -l "Joint Size" -subMenu true -tearOff true`;
- menuItem -e -pmc ( "buildJointScaleSubmenu " + $menuItem ) $menuItem;
- setParent -m ..;
-
- $menuItem = `menuItem -l "IK/FK Joint Size" -subMenu true -tearOff true`;
- menuItem -e -pmc ( "buildIkFkJointScaleSubmenu " + $menuItem ) $menuItem;
- setParent -m ..;
- }
-
- if (`exists ikHandleDisplayScale`)
- {
- $menuItem = `menuItem -l "IK Handle Size" -subMenu true -tearOff true`;
- menuItem -e -pmc ( "buildikHandleScaleSubmenu " + $menuItem ) $menuItem;
- setParent -m ..;
- }
-
-
- if (`isTrue "MayaCreatorExists"` && (`licenseCheck -m "edit" -typ "particlePaint"`))
- {
- menuItem -d 1;
- $menuItem = `menuItem -l "Stroke Display Quality"
- -subMenu true -tearOff true`;
- menuItem -e -pmc ( "buildStrokeDisplayQualitySubmenu "
- + $menuItem ) $menuItem;
- setParent -m ..;
- }
-
- originAxesMenuUpdate;
- gridMenuUpdate;
- } else {
- //
- // Update check items
- //
- menuItem -e -cb `displayLevelOfDetail -q -lod` dispLODItem;
- }
- }
-
- ////////////////////////////////////////////////////////
- //
- // The following procedures build the contents of
- // the Display menu submenus - this speeds up the
- // initial display of the Display menu when the user
- // clicks on the menu
- //
- ////////////////////////////////////////////////////////
-
- global proc buildJointScaleSubmenu( string $parent )
- //
- // Build the Joint Scale submenu contents
- {
- setParent -m $parent;
- menuItem -l "25%"
- -annotation "Joint Scale: Set the Joint Scale to 25%"
- -c ("jointDisplayScale .25;"+
- "$gJointDisplayScale = 0.25;"+
- "optionVar -fv ikJointDisplayScale 0.25")
- jdsItem1;
- menuItem -l "50%"
- -annotation "Joint Scale: Set the Joint Scale to 50%"
- -c ("jointDisplayScale .5;"+
- "$gJointDisplayScale = 0.5;"+
- "optionVar -fv ikJointDisplayScale 0.5")
- jdsItem2;
- menuItem -l "75%"
- -annotation "Joint Scale: Set the Joint Scale to 75%"
- -c ("jointDisplayScale .75;"+
- "$gJointDisplayScale = 0.75;"+
- "optionVar -fv ikJointDisplayScale 0.75")
- jdsItem3;
- menuItem -l "100%"
- -annotation "Joint Scale: Set the Joint Scale to 100%"
- -c ("jointDisplayScale 1.0;"+
- "$gJointDisplayScale = 1.0;"+
- "optionVar -fv ikJointDisplayScale 1.0")
- jdsItem4;
- menuItem -l "Custom..."
- -annotation "Joint Scale: Customize the Joint Scale"
- -c "jdsWin" jdsItem5;
-
- // Delete the -pmc now that the submenu contents are built
- //
- menuItem -e -pmc "" $parent;
- }
-
- global proc buildIkFkJointScaleSubmenu( string $parent )
- //
- // Build the Joint Scale submenu contents
- {
- setParent -m $parent;
- menuItem -l "25%"
- -annotation "IK/FK Joint Scale: Set the IK/FK Joint Scale to 25%"
- -c ("jointDisplayScale -ikfk .25;"+
- "$gIkFkJointDisplayScale = 0.25;"+
- "optionVar -fv ikIkFkJointDisplayScale 0.25")
- ikfkjdsItem1;
- menuItem -l "50%"
- -annotation "IK/FK Joint Scale: Set the IK/FK Joint Scale to 50%"
- -c ("jointDisplayScale -ikfk .5;"+
- "$gIkFkJointDisplayScale = 0.5;"+
- "optionVar -fv ikIkFkJointDisplayScale 0.5")
- ikfkjdsItem2;
- menuItem -l "75%"
- -annotation "IK/FK Joint Scale: Set the IK/FK Joint Scale to 75%"
- -c ("jointDisplayScale -ikfk .75;"+
- "$gIkFkJointDisplayScale = 0.75;"+
- "optionVar -fv ikIkFkJointDisplayScale 0.75")
- ikfkjdsItem3;
- menuItem -l "100%"
- -annotation "IK/FK Joint Scale: Set the IK/FK Joint Scale to 100%"
- -c ("jointDisplayScale -ikfk 1.0;"+
- "$gIkFkJointDisplayScale = 1.0;"+
- "optionVar -fv ikIkFkJointDisplayScale 1.0")
- ikfkjdsItem4;
- menuItem -l "Custom..."
- -annotation "IK/FK Joint Scale: Customize the IK/FK Joint Scale"
- -c "ikfkjdsWin" ikfkjdsItem5;
-
- // Delete the -pmc now that the submenu contents are built
- //
- menuItem -e -pmc "" $parent;
- }
-
- global proc buildikHandleScaleSubmenu( string $parent )
- //
- // Build the ikHandle Scale submenu contents
- {
- setParent -m $parent;
- menuItem -l "25%"
- -annotation "IK Handle Scale: Set the IK Handle Scale to 25%"
- -c ("ikHandleDisplayScale .25;"+
- "$gikHandleDisplayScale = 0.25;"+
- "optionVar -fv ikHandleDisplayScale 0.25")
- ikHdsItem1;
- menuItem -l "50%"
- -annotation "IK Handle Scale: Set the IK Handle Scale to 50%"
- -c ("ikHandleDisplayScale .5;"+
- "$gikHandleDisplayScale = 0.5;"+
- "optionVar -fv ikHandleDisplayScale 0.5")
- ikHdsItem2;
- menuItem -l "75%"
- -annotation "IK Handle Scale: Set the IK Handle Scale to 75%"
- -c ("ikHandleDisplayScale .75;"+
- "$gikHandleDisplayScale = 0.75;"+
- "optionVar -fv ikHandleDisplayScale 0.75")
- ikHdsItem3;
- menuItem -l "100%"
- -annotation "IK Handle Scale: Set the IK Handle Scale to 100%"
- -c ("ikHandleDisplayScale 1.0;"+
- "$gikHandleDisplayScale = 1.0;"+
- "optionVar -fv ikHandleDisplayScale 1.0")
- ikHdsItem4;
- menuItem -l "Custom..."
- -annotation "Custom IK Handle Scale: Customize the IK Handle scale"
- -c "ikHdsWin" ikHdsItem5;
-
- // Delete the -pmc now that the submenu contents are built
- //
- menuItem -e -pmc "" $parent;
- }
-
- global proc buildHideSubmenu( string $parent )
- //
- // Build the Hide submenu contents
- {
- int $dimWhenNoSelect = 0;
- int $completeLicense = `licenseCheck -m "edit" -typ "complete"`;
-
- setParent -m $parent;
- menuItem -l "Hide Selection"
- -annotation "Hide Selection: Hide the selected object(s)"
- -c "HideSelectedObjects" hideItem;
- if( $dimWhenNoSelect ) {
- dimWhen -f "SomethingSelected" ($parent+"|hideItem");
- }
-
- menuItem -l "Hide Unselected Objects"
- -annotation
- "Hide Unselected Objects: Hide all objects that are not selected"
- -c "HideUnselectedObjects" hideUnselectedItem;
- if( $dimWhenNoSelect ) {
- dimWhen -f "SomethingSelected" ($parent+"|hideUnselectedItem");
- }
-
- menuItem -l "Hide Unselected CVs"
- -annotation
- "Hide Unselected CVs: Hide all CVs on the surface that are not selected"
- -c "HideUnselectedCVs" hideUnselectedCVsItem;
- if( $dimWhenNoSelect ) {
- dimWhen -f "SomethingSelected" ($parent+"|hideUnselectedCVsItem");
- }
-
- menuItem -l "All"
- -annotation "Hide All: Hide all objects"
- -c "HideAll" hideAllItem;
-
- menuItem -d true;
-
- menuItem -l "Hide Geometry" -sm true -to true;
- menuItem -l "All"
- -annotation "Hide All Geometry"
- -c "HideGeometry" hideGeometryItem;
- menuItem -d true;
- if( `isTrue "SurfaceUIExists"` ) {
- menuItem -l "NURBS Surfaces"
- -annotation "Hide All NURBS Surfaces"
- -c "HideNURBSSurfaces"
- hideNurbsSurfacesItem;
- }
- menuItem -l "NURBS Curves"
- -annotation "Hide All NURBS Curves"
- -c "HideNURBSCurves"
- hideNurbsCurvesItem;
- menuItem -l "Polygon Surfaces"
- -annotation "Hide All Polygon Surfaces"
- -c "HidePolygonSurfaces"
- hidePolySurfacesItem;
- menuItem -l "Deforming Geometry"
- -annotation "Hide All Deforming Geometry"
- -c "HideDeformingGeometry";
-
- if (`isTrue "SubdivUIExists"`) {
- menuItem -l "Subdiv Surfaces"
- -annotation "Hide All Subdiv Surfaces"
- -c "HideSubdivSurfaces"
- subdivToggleHideGeometryItem;
- }
- if(`isTrue "MayaCreatorExists"` && (`licenseCheck -m "edit" -typ "particlePaint"`)) {
- menuItem -d 1;
- menuItem -l "Strokes"
- -annotation "Hide All Strokes"
- -c "HideStrokes" hideStrokesItem;
- menuItem -l "Stroke Path Curves"
- -annotation "Hide All Stroke Path Curves"
- -c "HideStrokePathCurves" hideStrokeCurvesItem;
- menuItem -l "Stroke Control Curves"
- -annotation "Hide All Stroke Control Curves"
- -c "HideStrokeControlCurves" hideStrokeControlCurvesItem;
- }
-
- setParent -m ..;
-
- menuItem -l "Hide Kinematics" -sm true -to true;
- menuItem -l "All"
- -annotation "Hide All Kinematics"
- -c "HideKinematics" hideKinItem;
- menuItem -d true;
- menuItem -l "Joints"
- -annotation "Hide All Joints"
- -c "HideJoints" hideJointsItem;
- menuItem -l "IK Handles"
- -annotation "Hide All IK Handles"
- -c "HideIKHandles"
- hideHandleItem;
- setParent -m ..;
-
- menuItem -l "Hide Deformers" -sm true -to true hideDeformersItem;
- menuItem -l "All"
- -annotation "Hide All Deformers"
- -c "HideDeformers" hideDeformItem;
- menuItem -d true;
- menuItem -l "Lattices"
- -annotation "Hide All Lattices"
- -c "HideLattices" hideFFDItem;
- if ($completeLicense) {
- menuItem -l "Sculpt Objects"
- -annotation "Hide All Sculpt Objects"
- -c "HideSculptObjects" hideSculptItem;
- menuItem -l "Clusters"
- -annotation "Hide All Clusters"
- -c "HideClusters" hideClusterItem;
- }
- menuItem -l "Nonlinears"
- -annotation "Hide All Nonlinears"
- -c "HideNonlinears" hideNonlinearItem;
-
- if ($completeLicense) {
- menuItem -l "Wrap Influences"
- -annotation "Hide All Wrap Influences"
- -c "HideWrapInfluences" hideWrapItem;
- }
- menuItem -l "Smooth Skin Influences"
- -annotation "Hide All Smooth Skin Influences"
- -c "HideSmoothSkinInfluences" hideSkinClusterItem;
-
- setParent -m ..;
-
- // create Hide->Cloth menu only if cloth has been loaded
- //
- if (`exists cpSolver`)
- {
- global string $gHideClothItem;
-
- $gHideClothItem = `menuItem -l "Hide Cloth" -sm true -to true`;
- menuItem -l "All"
- -c "HideCloth"
- -annotation "Hide All Cloth";
- menuItem -d true;
- menuItem -l "Panel Curves"
- -c "HideClothPanelCurves"
- -annotation "Hide Cloth Panel Curves";
- menuItem -l "Panels"
- -c "HideClothPanels"
- -annotation "Hide Cloth Panels";
- menuItem -l "Seams"
- -c "HideClothSeams"
- -annotation "Hide Cloth Seams";
-
- setParent -m ..;
- }
-
-
- menuItem -l "Lights"
- -annotation "Hide All Lights"
- -c "HideLights" hideLightsItem;
- menuItem -l "Cameras"
- -annotation "Hide All Cameras"
- -c "HideCameras" hideCamerasItem;
- menuItem -l "Texture Placements"
- -annotation "Hide All Texture Placements"
- -c "HideTexturePlacements" hidePlace3dTxItem;
- menuItem -l "Construction Planes"
- -annotation "Hide All Construction Planes"
- -c "HidePlanes" hidePlanesItem;
-
- if( fluidEditLicenseFound() ) {
- menuItem -l "Fluids"
- -annotation "Hide All Fluids"
- -c "HideFluids" hideFluidsItem;
- }
-
- menuItem -d true;
-
- menuItem -l "Animation Markers"
- -annotation "Hide All Animation Markers"
- -c "HideMarkers" hideMarkersItem;
-
- if (`isTrue "RenderingExists"`) {
- menuItem -l "Light Manipulators"
- -annotation "Hide All Light Manipulators"
- -c "HideLightManipulators"
- hideLightManipItem;
- menuItem -l "Camera Manipulators"
- -annotation "Hide All Camera Manipulators"
- -c "HideCameraManipulators"
- hideCameraManipItem;
- }
-
- // Delete the -pmc now that the contents of the submenu are built
- //
- menuItem -e -pmc "" $parent;
- }
-
- global proc buildShowSubmenu( string $parent )
- //
- // Build the Show submenu contents
- {
- int $dimWhenNoSelect = 0;
- int $completeLicense = `licenseCheck -m "edit" -typ "complete"`;
- setParent -m $parent;
-
- menuItem -l "Show Selection"
- -annotation "Show Selection: Show all selected objects"
- -c "ShowSelectedObjects" showHiddenItem;
- if( $dimWhenNoSelect ) {
- dimWhen -f "SomethingSelected" ($parent+"|showHiddenItem");
- }
- menuItem -l "Show Last Hidden" -ecr false
- -annotation "Show Last Hidden: Show the last hidden item"
- -c "ShowLastHidden" showLastHiddenItem;
- menuItem -l "All Surface CVs" -ecr false
- -annotation "Show All Surface CVs: Show all CVs for the surface with the selected CV(s)"
- -c "ShowSurfaceCVs" showAllSurfaceCVsItem;
- menuItem -l "All"
- -annotation "Show All: Show All Objects"
- -c "ShowAll" visibilityShowAllItem2;
-
- menuItem -d true;
-
- menuItem -l "Show Geometry" -sm true -to true;
- menuItem -l "All"
- -annotation "Show All Geometry"
- -c "ShowAll" showGeometryItem;
- menuItem -d true;
- if( `isTrue "SurfaceUIExists"` ) {
- menuItem -l "NURBS Surfaces"
- -annotation "Show All NURBS Surfaces"
- -c "ShowNURBSSurfaces"
- showNurbsSurfacesItem;
- }
- menuItem -l "NURBS Curves"
- -annotation "Show All NURBS Curves"
- -c "ShowNURBSCurves"
- showNurbsCurvesItem;
- menuItem -l "Polygon Surfaces"
- -annotation "Show All Polygon Surfaces"
- -c "ShowPolygonSurfaces"
- showPolySurfacesItem;
- menuItem -l "Deforming Geometry"
- -annotation "Show All Deforming Geometry"
- -c "ShowDeformingGeometry";
-
- if (`isTrue "SubdivUIExists"`) {
- menuItem -l "Subdiv Surfaces"
- -annotation "Show All Subdiv Surfaces"
- -c "ShowSubdivSurfaces"
- subdivToggleShowGeometryItem;
- }
- if(`isTrue "MayaCreatorExists"` && (`licenseCheck -m "edit" -typ "particlePaint"`)) {
- menuItem -d 1;
- menuItem -l "Strokes"
- -annotation "Show All Strokes"
- -c "ShowStrokes" showStrokesItem;
- menuItem -l "Stroke Path Curves"
- -annotation "Show All Stroke Path Curves"
- -c "ShowStrokePathCurves" showStrokeCurvesItem;
- menuItem -l "Stroke Control Curves"
- -annotation "Show All Stroke Control Curves"
- -c "ShowStrokeControlCurves" showStrokeControlCurvesItem;
- }
-
- setParent -m ..;
-
- menuItem -l "Show Kinematics" -sm true -to true;
- menuItem -l "All"
- -annotation "Show All Kinematics"
- -c "ShowKinematics" showKinItem;
- menuItem -d true;
- menuItem -l "Joints"
- -annotation "Show All Joints"
- -c "ShowJoints" showJointsItem;
- menuItem -l "IK Handles"
- -annotation "Show All IK Handles"
- -c "ShowIKHandles" showHandleItem;
- setParent -m ..;
-
- menuItem -l "Show Deformers" -sm true -to true showDeformersItem;
- menuItem -l "All"
- -annotation "Show All Deformers"
- -c "ShowDeformers" showDeformItem;
- menuItem -d true;
- menuItem -l "Lattices"
- -annotation "Show All Lattices"
- -c "ShowLattices" showFFDItem;
- if ($completeLicense) {
- menuItem -l "Sculpt Objects"
- -annotation "Show All Sculpt Objects"
- -c "ShowSculptObjects" showSculptItem;
- menuItem -l "Clusters"
- -annotation "Show All Clusters"
- -c "ShowClusters" showClusterItem;
- }
- menuItem -l "Nonlinears"
- -annotation "Show All Nonlinears"
- -c "ShowNonlinears" showNonlinearItem;
- if ($completeLicense) {
- menuItem -l "Wrap Influences"
- -annotation "Show All Wrap Influences"
- -c "ShowWrapInfluences" showWrapItem;
- }
- menuItem -l "Smooth Skin Influences"
- -annotation "Show All Smooth Skin Influences"
- -c "ShowSmoothSkinInfluences" showSkinClusterItem;
-
- setParent -m ..;
-
- // create Show->Cloth menu only is cloth is loaded
- //
- if (`exists cpSolver`)
- {
- global string $gShowClothItem;
-
- $gShowClothItem = `menuItem -l "Show Cloth" -sm true -to true`;
- menuItem -l "All"
- -annotation "Show All Cloth Parts"
- -c "ShowCloth";
- menuItem -d true;
- menuItem -l "Panel Curves"
- -c "ShowClothPanelCurves"
- -annotation "Show Cloth Panel Curves";
- menuItem -l "Panels"
- -c "ShowClothPanels"
- -annotation "Show Cloth Panels";
- menuItem -l "Seams"
- -c "ShowClothSeams"
- -annotation "Show Cloth Seams";
- setParent -m ..;
- }
-
- menuItem -l "Lights"
- -annotation "Show All Lights"
- -c "ShowLights" showLightsItem;
- menuItem -l "Cameras"
- -annotation "Show All Cameras"
- -c "ShowCameras" showCamerasItem;
- menuItem -l "Texture Placements"
- -annotation "Show All Texture Placements"
- -c "ShowTexturePlacements" showPlace3dTxItem;
- menuItem -l "Construction Planes"
- -annotation "Show All Construction Planes"
- -c "ShowPlanes" showPlanesItem;
-
- if( fluidEditLicenseFound() ) {
- menuItem -l "Fluids"
- -annotation "Show All Fluids"
- -c "ShowFluids" showFluidsItem;
- }
-
- menuItem -d true;
-
- menuItem -l "Animation Markers"
- -annotation "Show All Animation Markers"
- -c "ShowMarkers" showMarkersItem;
-
- if (`isTrue "RenderingExists"`) {
- menuItem -l "Light Manipulators"
- -annotation "Show All Light Manipulators"
- -c "ShowLightManipulators"
- showLightManipItem;
- if( $dimWhenNoSelect ) {
- dimWhen -f "SomethingSelected"
- ($parent+"|showLightManipItem");
- }
- menuItem -l "Camera Manipulators"
- -annotation "Show All Camera Manipulators"
- -c "ShowCameraManipulators"
- showCameraManipItem;
- if( $dimWhenNoSelect ) {
- dimWhen -f "SomethingSelected"
- ($parent+"|showCameraManipItem");
- }
- }
-
- // Delete the -pmc now that the submenu contents are built
- //
- menuItem -e -pmc "" $parent;
- }
-
- global proc buildSmoothnessSubmenu( string $parent )
- //
- // Build the Smoothness submenu contents
- {
- setParent -m $parent;
- menuItem -l "Hull"
- -annotation "Display Hull: Set the Display Smoothness to Hull"
- -dmc "performDisplaySmoothnessHull 2"
- -c "NURBSSmoothnessHull"
- dispSmthnessHullItem;
- menuItem -ecr false -optionBox true
- -annotation "Display Hull Option Box"
- -l "Hull Option Box"
- -c "NURBSSmoothnessHullOptions"
- dispSmthnessHullOptionItem;
-
- menuItem -l "Rough"
- -annotation "Display Rough: Set the Display Smoothness to Rough"
- -dmc "performDisplaySmoothnessRough 2"
- -c "NURBSSmoothnessRough"
- dispSmthnessRoughItem;
- menuItem -ecr false -optionBox true
- -annotation "Display Rough Option Box"
- -l "Rough Option Box"
- -c "NURBSSmoothnessRoughOptions"
- dispSmthnessRoughOptionItem;
-
- menuItem -l "Medium"
- -annotation "Display Medium: Set the Display Smoothness to Medium"
- -dmc "performDisplaySmoothnessMedium 2"
- -c "NURBSSmoothnessMedium"
- dispSmthnessMediumItem;
- menuItem -ecr false -optionBox true
- -annotation "Display Medium Option Box"
- -l "Medium Option Box"
- -c "NURBSSmoothnessMediumOptions"
- dispSmthnessMediumOptionItem;
-
- menuItem -l "Fine"
- -annotation "Display Fine: Set the Display Smoothness to Fine"
- -dmc "performDisplaySmoothnessFine 2"
- -c "NURBSSmoothnessFine"
- dispSmthnessFineItem;
- menuItem -ecr false -optionBox true
- -annotation "Display Fine Option Box"
- -l "Fine Option Box"
- -c "NURBSSmoothnessFineOptions"
- dispSmthnessFineOptionItem;
- menuItem -d true;
-
- menuItem -l "Custom"
- -annotation "Display Custom: Define and set a customized Display Smoothness"
- -dmc "performDisplaySmoothnessCustom 2"
- -c "CustomNURBSSmoothness"
- dispSmthnessCustomItem;
- menuItem -ecr false -optionBox true
- -annotation "Display Custom Option Box"
- -l "Custom Option Box"
- -c "CustomNURBSSmoothnessOptions"
- dispSmthnessCustomOptionItem;
-
- // Delete the -pmc now that the submenu contents are built
- //
- menuItem -e -pmc "" $parent;
- }
-